home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh
- # Copyright, 1990, Regents of the University of Colorado
- #
- # This csh script is used to install or update DINO. It simply
- # checks to ensure that it is invoked on a sun and that there is
- # a binary for the program "cinstall" and then calls that program.
- #
-
- if (-e /usr/bin/arch) then
- set Mytemp=`/usr/bin/arch`
- else
- echo ""
- echo " DINO installer aparently not invoked on a sun."
- echo " (/usr/bin/arch not found)"
- echo ""
- exit 1
- endif
-
- if ($Mytemp != "sun3" && $Mytemp != "sun4") then
- echo ""
- echo " DINO installer aparently not invoked on a sun."
- echo " (/usr/bin/arch returned $Mytemp)"
- echo ""
- exit 1
- endif
-
- if (! -e bin/$Mytemp/cinstall) then
- if (-e source/install/cinstall.c) then
- echo ""
- echo " Please wait for a few seconds, compiling cinstall . . ."
- echo ""
- if (! -d bin) then
- mkdir bin
- endif
- if (! -d bin/$Mytemp) then
- mkdir bin/$Mytemp
- endif
- cc -o bin/$Mytemp/cinstall source/install/cinstall.c
- else
- echo ""
- echo " DINO installer unable to find source code for"
- echo " cinstall (no source/install/cinstall.c)"
- echo ""
- exit 1
- endif
- endif
-
- bin/$Mytemp/cinstall
-
-
-
-
-